home *** CD-ROM | disk | FTP | other *** search
- global gDBTableVarList
-
- on ResizeLayOutScreen
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- if the width of sprite 2 = 640 then
- size = 1
- else
- size = 2
- end if
- SizeWindowArt(size)
- SizeTable(size)
- FirstandLastRectList = SizeScroll(size)
- OnStageRect1 = getAt(FirstandLastRectList, 1)
- OnStageRectLast = getAt(FirstandLastRectList, count(FirstandLastRectList))
- EvalDisableScroll(MyObj)
- ShowTableBorder(OnStageRect1, OnStageRectLast)
- FootNoteLoc(OnStageRect1, OnStageRectLast)
- SizeMIAW(size)
- ScrollToStart(MyObj)
- updateStage()
- SetPostShowProps()
- end
-
- on SizeWindowArt size
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- SetPuppetState([1, 3], #contiguous, 1)
- BorderRect = GetBorderRect(MyObj, size)
- set the rect of sprite 2 to BorderRect
- xMemberNum = the number of member getAt(["doc min", "doc max"], size)
- set the member of sprite 3 to member(xMemberNum)
- set the rect of sprite 3 to rect(0, 0, member(xMemberNum).width, member(xMemberNum).height)
- controlList = GetControlList(MyObj)
- repeat with rc in controlList
- buttonLoc(rc, size)
- end repeat
- end
-
- on SizeTable size
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- SpriteList = GetSpriteList(MyObj)
- TableObj = GetTableObj(MyObj)
- SizeTable(TableObj, size)
- resetSelection(TableObj)
- end
-
- on SizeScroll size
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- TableObj = GetTableObj(MyObj)
- OnStageRectList = GetOnStageRectList(TableObj)
- rect1 = getAt(OnStageRectList, 1)
- RectLast = GetBodyNewRect(TableObj)
- ScrollNeedList = GetScrollNeeds(TableObj)
- VerticalScrollLoc(rect1, RectLast)
- HorizontalScrollLoc(rect1, RectLast)
- return [rect1, RectLast]
- end
-
- on PrepareFootNoteLoc TableRectList
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- TableObj = GetTableObj(MyObj)
- rect1 = getAt(TableRectList, 1)
- RectLast = getAt(TableRectList, 2)
- FootNoteLoc(rect1, RectLast)
- end
-
- on SizeMIAW size
- if count(the windowList) > 0 then
- MyObj = getaProp(gDBTableVarList, GetObjProp())
- windowName = (the activeWindow).name
- MyRect = window(windowName).rect
- if size = 1 then
- l = getAt(MyRect, 1)
- t = getAt(MyRect, 2)
- else
- l = getAt((the stage).rect, 1)
- t = getAt((the stage).rect, 2) + 26
- end if
- window(windowName).rect = GetBorderRect(MyObj, size) + rect(l, t, l, t)
- end if
- end
-